package com.tz.farm_feeding.domain;

import com.alibaba.fastjson.JSONObject;

public class Pig {
    private Integer id;

    private String idsn;

    private String info;

    private Double weight;

    private Integer age;

    private String isipv;

    private String status;

    private Integer batchid;

    @Override
    public String toString() {
      JSONObject jsonObject = new JSONObject();
      jsonObject.put("id", getId());
      jsonObject.put("idsn", getIdsn());
      jsonObject.put("info", getInfo());
      jsonObject.put("weight", getWeight());
      jsonObject.put("age", getAge());
      jsonObject.put("isipv", getIsipv());
      jsonObject.put("status", getStatus());
      jsonObject.put("batchid", getBatchid());
      return jsonObject.toJSONString();
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIdsn() {
        return idsn;
    }

    public void setIdsn(String idsn) {
        this.idsn = idsn == null ? null : idsn.trim();
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info == null ? null : info.trim();
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIsipv() {
        return isipv;
    }

    public void setIsipv(String isipv) {
        this.isipv = isipv == null ? null : isipv.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Integer getBatchid() {
        return batchid;
    }

    public void setBatchid(Integer batchid) {
        this.batchid = batchid;
    }
}